using UnityEditor;
using UnityEngine;

[CustomEditor(typeof(UnitBase))]
public class UnitBaseEditor : Editor
{
    public override void OnInspectorGUI()
    {
        base.OnInspectorGUI();
        if (GUILayout.Button("preview"))
        {
            UnitBase unit = target as UnitBase;
        }
    }
}
